<template>
  <div class="shoppingcar">
    <div class="title">
     <h5 class="name">
      购物车
     </h5>
    </div>
    <div class="body">
      <div class="bar">
      <router-link class="topbar" active-class="active" to="/alloder">全部订单</router-link>
      <router-link class="topbar" active-class="active" to="/notoder">代付款</router-link>
    </div>
    <div class="main">
      <router-view></router-view>
    </div>
    </div>
  </div>
</template>


<script setup>


</script>


<style lang="less" scoped>
.shoppingcar{
  width: 100%;
  background-color: #ff9854;
  .title{
    width: 100%;
    height: 100px;
    margin: 0 auto;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    .name{
      text-align: center;
      line-height: 100px;
      font-size: 18px;
    }
  }
  .body{
    background-color: #fff;
    padding: 40px 20px;
    // border-top-left-radius: 10px;
    border-radius: 20px;
.bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  .topbar{
    width: 100px;
    height: 50px;
    color: #fff;
    background-color: #ccc;
    border-radius: 10px;
    text-align: center;
    line-height: 50px;
  }
}
  }
}

.active{
  background-color: #ff9854 !important ; //提高权重

}
</style>